# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=Test-Requires
pkgname=perl-${_realname}
pkgver=0.10
pkgrel=1
pkgdesc="Checks to see if the module can be loaded"
arch=('any')
url="https://search.cpan.org/dist/Test-Requires"
groups=('perl-modules')
depends=('perl')
license=('GPL' 'PerlArtistic')
source=("https://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/Test-Requires-${pkgver}.tar.gz")
sha256sums=('2768a391d50ab94b95cefe540b9232d7046c13ee86d01859e04c044903222eb5')

prepare() {
  cd "${srcdir}/${_realname}-${pkgver}"
}

build() {
  cd "${srcdir}/${_realname}-${pkgver}"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "${srcdir}/${_realname}-${pkgver}"
  make install DESTDIR="${pkgdir}"
}
